<?php
/**
 * Author: liushanshan
 * Date: 2019/3/1 0001
 */
namespace App\Http\Controllers;
class BaseController extends Controller{
    public function __construct(){
        $admin_info = session('admin_info');
        if(empty($admin_info)){
            return view('index',[
                'css'       =>  'css/index.css',
                'content'   =>  'main'
            ]);
        }else{
            //当前登录信息 传入模板
            $this->assign('admin_info',$admin_info);
        }
    }
}